pkgname=osk-sdl
pkgver=0.50
pkgrel=0
pkgdesc="Onscreen keyboard for unlocking LUKS devices"
url="https://github.com/postmarketOS/osk-sdl"
arch="all"
license="GPL3"
depends="sdl2 sdl2_ttf cryptsetup-libs mesa-gl directfb"
makedepends="linux-headers sdl2-dev sdl2_ttf-dev cryptsetup-dev"
subpackages=""

source="${pkgname}-${pkgver}-${pkgrel}.tar.gz::https://github.com/postmarketOS/osk-sdl/archive/${pkgver}.tar.gz"

options="!strip"

build() {
    make
}

package() {
    install -D -m755 "${srcdir}/${pkgname}-${pkgver}"/osk-sdl \
        "$pkgdir"/usr/bin/osk-sdl
    install -D -m755 "${srcdir}/${pkgname}-${pkgver}"/osk.conf \
        "$pkgdir"/etc/osk.conf
}
sha512sums="08b6b5c428302808166f6cc31a9fb778606e46226cb4d05100e829056d6ca598611f7456846cb086a4c5189e643509be7f4f160861f6bd508aed70c809c7994e  osk-sdl-0.50-0.tar.gz"
